package ch.webkito.example;

import ch.webkito.module.WebkitoAutowireServletModule;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.servlet.GuiceServletContextListener;

public class ServletConfig extends GuiceServletContextListener {

	@Override
	protected Injector getInjector() {
		return Guice.createInjector(new WebkitoAutowireServletModule() {
			@Override
			protected void configureServlets() {
				autowire(HomeServlet.class);
			}
		});
	}

}
